package net.comm.shequ.web.form;

import net.comm.page.PageCtr;

import org.apache.struts.action.*;
import org.apache.struts.upload.FormFile;

public class JgShenqingForm extends ActionForm {

	private static final long serialVersionUID = 1L;
	private static final String KEY_SPLIT = "#,##,#,#,#";
	
	private String 	QryStatus;	//	状态
	private String 	QryJgType;		//	机构类型

	private int 	SeqID;		//	申请ID
	private String 	JgType;		//	机构类型
	private String 	JgName;		//	机构名称
	private int 	VillageID;	//	服务社区
	private String 	Content;	//	服务内容
	private int 	UserID;		//	负责人
	private String 	Tel;		//	联系方式
	private int 	F_ID1;		//	相关资料一
	private int 	F_ID2;		//	相关资料二
	private String 	Status;		//	状态
	private String 	Mtime;		//	申请时间
	private int  	FollID;			//	跟贴序号
	private FormFile Filepath1;	//	相关资料一
	private FormFile Filepath2;	//	相关资料二

	public JgShenqingForm() {
		super();
		// TODO Auto-generated constructor stub
		Clear();
	}
	public void Clear() {
		
		QryStatus = "";
		QryJgType = "";
		
		SeqID = 0;	//	申请ID
		FollID = 0; //跟帖序号
		JgType = "";	//	机构类型
		JgName = "";	//	机构名称
		VillageID = 0;	//	服务社区
		Content = "";	//	服务内容
		UserID = 0;	//	负责人
		Tel = "";	//	联系方式
		F_ID1 = 0;	//	相关资料一
		F_ID2 = 0;	//	相关资料二
		Status = "";
		Mtime = "";	//	申请时间		
		
		Filepath1 = null;
		Filepath2 = null;
	}

	/**
	 * 查询当前页主键值串
	 */
	private String key = "";

	/**
	 * 查询上上页主键值串
	 */
	private String lastKey = "";
	

	/**
	 * 分页控制对象
	 */
	private PageCtr page;
	


	private String action = "";

	public PageCtr getPage() {
		return page;
	}

	public void setPage(PageCtr page) {
		this.page = page;
	}
	
	/**
	 * @param key the key to set
	 */
	public void setKey(String key) {
		this.key = key;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String[] array) {
		if(key != null && key.trim().length() > 0) {
			key = "";
		}
		
		StringBuffer keyBuff = new StringBuffer();
		for (int i = 0; i < array.length; i++) 
		{
			/**
			 * 防止空字符串引起的split方法异常
			 */
			if(array[i] == null || array[i].length() == 0) {
				keyBuff.append(" ");
			} else {
				keyBuff.append(array[i]);
			}
			
			keyBuff.append(KEY_SPLIT);
		}
		
		key = keyBuff.toString();		
	}
	
	/**
	 * 获取lastKey值
	 * @return
	 */
	public String[] lastKey()
	{
		if(lastKey == null || lastKey.trim().length() == 0) {
			return null;
		}
		
		return lastKey.split(KEY_SPLIT);
	}
	
	public String getLastKey() {
		return lastKey;
	}

	public void setLastKey(String lastKey) {
		this.lastKey = lastKey;
	}

	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
	
	public static String getKEY_SPLIT() {
		return KEY_SPLIT;
	}


	public static long getSerialVersionUID() {
		return serialVersionUID;
	}
	public int getSeqID() {
		return SeqID;
	}	
	public int getFollID() {
		return FollID;
	}
	public String getJgType() {
		return JgType;
	}
	public String getJgName() {
		return JgName;
	}
	public int getVillageID() {
		return VillageID;
	}
	public String getContent() {
		return Content;
	}
	public int getUserID() {
		return UserID;
	}
	public String getTel() {
		return Tel;
	}
	public int getF_ID1() {
		return F_ID1;
	}
	public int getF_ID2() {
		return F_ID2;
	}
	public String getMtime() {
		return Mtime;
	}
	public void setSeqID(int seqID) {
		SeqID = seqID;
	}
	public void setFollID(int FollID) {
		this.FollID = FollID;
	}
	public void setJgType(String jgType) {
		JgType = jgType;
	}
	public void setJgName(String jgName) {
		JgName = jgName;
	}
	public void setVillageID(int villageID) {
		VillageID = villageID;
	}
	public void setContent(String content) {
		Content = content;
	}
	public void setUserID(int userID) {
		UserID = userID;
	}
	public void setTel(String tel) {
		Tel = tel;
	}
	public void setF_ID1(int f_id1) {
		F_ID1 = f_id1;
	}
	public void setF_ID2(int f_id2) {
		F_ID2 = f_id2;
	}
	public void setMtime(String mtime) {
		Mtime = mtime;
	}
	public FormFile getFilepath1() {
		return Filepath1;
	}
	public FormFile getFilepath2() {
		return Filepath2;
	}
	public void setFilepath1(FormFile filepath1) {
		Filepath1 = filepath1;
	}
	public void setFilepath2(FormFile filepath2) {
		Filepath2 = filepath2;
	}
	public String getStatus() {
		return Status;
	}
	public void setStatus(String status) {
		Status = status;
	}
	public String getQryStatus() {
		return QryStatus;
	}
	public void setQryStatus(String qryStatus) {
		QryStatus = qryStatus;
	}
	public String getQryJgType() {
		return QryJgType;
	}
	public void setQryJgType(String qryJgType) {
		QryJgType = qryJgType;
	}


	
}